package com.maryluo.admin.user.service.impl;

import com.maryluo.admin.user.domain.AdminUser;
import com.maryluo.admin.user.service.AdminUserService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description : JMS消息生产者
 * @Project : maryluo
 * @Program Name  : com.maryluo.admin.user.service.impl.JmsServiceImpl.java
 * @Author : maruili on  2017/2/22
 */
@Service
public class AdminUserServiceImpl implements AdminUserService {
    @Override
    public List<AdminUser> listAll() {
        AdminUser user = new AdminUser();
        user.setId(1);
        user.setUserName("maruili");
        user.setPassword("123456");
        AdminUser user2 = new AdminUser();
        user2.setId(2);
        user2.setUserName("luogang");
        user2.setPassword("123456");
        List<AdminUser> users = new ArrayList<AdminUser>();
        users.add(user);
        users.add(user2);
        return users;
    }
}
